package com.dalei.vdserver.webservice;

import javax.jws.WebParam;
import javax.jws.WebService;

@WebService
public interface RegisterDeviceService {

	// Register device
	public int registerDevice(@WebParam(name = "model") String model,
			@WebParam(name = "imei") String imei,
			@WebParam(name = "imeiSv") String imeiSv,
			@WebParam(name = "serialNo") String serialNo,
			@WebParam(name = "wlanMac") String wlanMac,
			@WebParam(name = "osVersion") String osVersion);

	// Is the device registered
	public boolean isRegistered(@WebParam(name = "imei") String imei);
	
	// Contains device (new! if the device already registered, return the id of the device; else return -1)
	public int containsDevice(@WebParam(name = "imei") String imei);
}
